﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Evoucher.Business.Models;

public partial class admin_vouchers_VoucherTypes : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            LoadVoucherTypes();
        }
    }

    private void LoadVoucherTypes()
    {
        IVoucherRepository repo = new VoucherRepository();
        gvVoucherTypes.DataSource = repo.GetVoucherTypes();
        gvVoucherTypes.DataBind();
    }
}